﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace WF_QLThuVien.Entities.Sach
{
    public class CSach
    {
        private string m_sachID;

        public string SachID
        {
            get { return m_sachID; }
            set { m_sachID = value; }
        }

        private string m_dauSachID;

        public string DauSachID
        {
            get { return m_dauSachID; }
            set { m_dauSachID = value; }
        }

        private string m_trangThai;

        public string TrangThai
        {
            get { return m_trangThai; }
            set { m_trangThai = value; }
        }        

        private string m_ghiChu;

        public string GhiChu
        {
            get { return m_ghiChu; }
            set { m_ghiChu = value; }
        }

        public CSach(DataRow r)
        {
            m_dauSachID = r["DauSachID"].ToString();
            m_ghiChu = r["GhiChu"].ToString();
            m_sachID = r["SachID"].ToString();
            m_trangThai = r["TrangThai"].ToString();
        }

        public CSach()
        {
            m_dauSachID = "";
            m_ghiChu = "";
            m_sachID = "";
            m_trangThai = "";
        }
    }
}
